package one;

public class GenericDemo1 {
    public static void main(String[] args) {
        Student<String,Integer> student = new Student<>();
        student.eat("吃饭啦");
        student.study(123);
        student.study("123");
        student.study(student);
    }
}
class Student<E,T> {
    private E e;
    private T t;

    public <E> void study(E e){
        System.out.println(e);

    }
    public void eat(E e){
        System.out.println(e);

    }

    public E getE() {
        return e;
    }

    public void setE(E e) {
        this.e = e;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
}
